package cool.lichuan.framework.config;

import cool.lichuan.common.enums.CaptchaEnum;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author lichuan
 * @date 2021/11/24 13:49
 * @description
 */
@Component
@ConfigurationProperties(prefix = "admin")
@Data
public class AdminConfig {
    private String version;
    private String copyright;
    private Boolean captchaEnabled;
    private CaptchaEnum captchaType;
    private static Boolean addressEnabled;

    public static boolean isAddressEnabled() {
        return addressEnabled;
    }
}
